package com.seari.gena.task;

import org.quartz.Job;
import org.quartz.JobDetail;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class TestJob implements Job {

	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		String jobName = context.getJobDetail().getKey().toString();
		System.out.println(jobName + "定时任务开启..");
		JobDetail detail = context.getJobDetail();
		String sid = detail.getJobDataMap().getString("data1");
		System.out.println(sid);
		System.out.println(jobName + "定时任务结束..");
	}

}